package org.arrow.db.pojo;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * CodeUserGroup entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "code_user_group", catalog = "hip_spr_tap")
public class CodeUserGroup implements java.io.Serializable {

	// Fields

	private Long groupId;
	private String groupType;
	private String groupName;
	private String groupDescription;
	private Boolean enable;
	private Timestamp createDate;
	private Timestamp lastModifyDate;

	// Constructors

	/** default constructor */
	public CodeUserGroup() {
	}

	/** minimal constructor */
	public CodeUserGroup(Long groupId, String groupType, String groupName,
			Boolean enable, Timestamp createDate, Timestamp lastModifyDate) {
		this.groupId = groupId;
		this.groupType = groupType;
		this.groupName = groupName;
		this.enable = enable;
		this.createDate = createDate;
		this.lastModifyDate = lastModifyDate;
	}

	/** full constructor */
	public CodeUserGroup(Long groupId, String groupType, String groupName,
			String groupDescription, Boolean enable, Timestamp createDate,
			Timestamp lastModifyDate) {
		this.groupId = groupId;
		this.groupType = groupType;
		this.groupName = groupName;
		this.groupDescription = groupDescription;
		this.enable = enable;
		this.createDate = createDate;
		this.lastModifyDate = lastModifyDate;
	}

	// Property accessors
	@Id
	@Column(name = "GROUP_ID", unique = true, nullable = false)
	public Long getGroupId() {
		return this.groupId;
	}

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

	@Column(name = "GROUP_TYPE", nullable = false, length = 256)
	public String getGroupType() {
		return this.groupType;
	}

	public void setGroupType(String groupType) {
		this.groupType = groupType;
	}

	@Column(name = "GROUP_NAME", nullable = false, length = 256)
	public String getGroupName() {
		return this.groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	@Column(name = "GROUP_DESCRIPTION", length = 512)
	public String getGroupDescription() {
		return this.groupDescription;
	}

	public void setGroupDescription(String groupDescription) {
		this.groupDescription = groupDescription;
	}

	@Column(name = "ENABLE", nullable = false)
	public Boolean getEnable() {
		return this.enable;
	}

	public void setEnable(Boolean enable) {
		this.enable = enable;
	}

	@Column(name = "CREATE_DATE", nullable = false, length = 19)
	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	@Column(name = "LAST_MODIFY_DATE", nullable = false, length = 19)
	public Timestamp getLastModifyDate() {
		return this.lastModifyDate;
	}

	public void setLastModifyDate(Timestamp lastModifyDate) {
		this.lastModifyDate = lastModifyDate;
	}

}